#include <stdio.h>
#include <malloc.h>


typedef struct {
  char *name;//8
  int age;//4
} Person;



int main() {
    int len = sizeof(Person);
    Person *p = malloc(len);
    char *address = &"zhangsan";
//    p->name = address;
    p->age = 18;
    printf("Person length: %d\n", len );//内存对齐理论,提高内存读取效率
//    printf("Person.name: %s\n", p->name );
    printf("Person.age: %d\n", p->age );

    return 0;
}
